package com.yellowpage.ndc.data;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import org.hibernate.annotations.GenericGenerator;

/**
 * Customer entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "db_ndc.CUSTOMER")
public class Customer implements java.io.Serializable {

	// Fields

	private String custId;
	private String groupId;
	private String name1;
	private String name2;
	private Long addrId;
	private Long mainListingId;
	private String mainListingStatus;
	private String grade;
	private String nonpublic;
	private Long custStatus;
	private String note;
	private Date modifyTime;
	private Long modifyEmpId;
	private String custTypeCode;
	private Long classMainId;
	private String orgId;
	private String url;
	private String weibo;
	private String weixin;
	private String yixin;
	private String logo;
	private String safeStatus;
	private String bxName;
	private String pyName;
	private String engName;

	// Constructors

	/** default constructor */
	public Customer() {
	}

	/** minimal constructor */
	public Customer(String groupId, String name1) {
		this.groupId = groupId;
		this.name1 = name1;
	}

	/** full constructor */
	public Customer(String groupId, String name1, String name2, Long addrId,
			Long mainListingId, String mainListingStatus, String grade,
			String nonpublic, Long custStatus, String note, Date modifyTime,
			Long modifyEmpId, String custTypeCode, Long classMainId,
			String orgId, String url, String weibo, String weixin,
			String yixin, String logo, String safeStatus, String bxName,
			String pyName, String engName) {
		this.groupId = groupId;
		this.name1 = name1;
		this.name2 = name2;
		this.addrId = addrId;
		this.mainListingId = mainListingId;
		this.mainListingStatus = mainListingStatus;
		this.grade = grade;
		this.nonpublic = nonpublic;
		this.custStatus = custStatus;
		this.note = note;
		this.modifyTime = modifyTime;
		this.modifyEmpId = modifyEmpId;
		this.custTypeCode = custTypeCode;
		this.classMainId = classMainId;
		this.orgId = orgId;
		this.url = url;
		this.weibo = weibo;
		this.weixin = weixin;
		this.yixin = yixin;
		this.logo = logo;
		this.safeStatus = safeStatus;
		this.bxName = bxName;
		this.pyName = pyName;
		this.engName = engName;
	}

	// Property accessors
	@GenericGenerator(name = "generator", strategy = "assigned")
	@Id
	@GeneratedValue(generator = "generator")
	@Column(name = "CUST_ID", unique = true, nullable = false, length = 14)
	public String getCustId() {
		return this.custId;
	}

	public void setCustId(String custId) {
		this.custId = custId;
	}

	@Column(name = "GROUP_ID", nullable = false, length = 14)
	public String getGroupId() {
		return this.groupId;
	}

	public void setGroupId(String groupId) {
		this.groupId = groupId;
	}

	@Column(name = "NAME1", nullable = false, length = 192)
	public String getName1() {
		return this.name1;
	}

	public void setName1(String name1) {
		this.name1 = name1;
	}

	@Column(name = "NAME2", length = 128)
	public String getName2() {
		return this.name2;
	}

	public void setName2(String name2) {
		this.name2 = name2;
	}

	@Column(name = "ADDR_ID", precision = 18, scale = 0)
	public Long getAddrId() {
		return this.addrId;
	}

	public void setAddrId(Long addrId) {
		this.addrId = addrId;
	}

	@Column(name = "MAIN_LISTING_ID", precision = 18, scale = 0)
	public Long getMainListingId() {
		return this.mainListingId;
	}

	public void setMainListingId(Long mainListingId) {
		this.mainListingId = mainListingId;
	}

	@Column(name = "MAIN_LISTING_STATUS", length = 1)
	public String getMainListingStatus() {
		return this.mainListingStatus;
	}

	public void setMainListingStatus(String mainListingStatus) {
		this.mainListingStatus = mainListingStatus;
	}

	@Column(name = "GRADE", length = 1)
	public String getGrade() {
		return this.grade;
	}

	public void setGrade(String grade) {
		this.grade = grade;
	}

	@Column(name = "NONPUBLIC", length = 1)
	public String getNonpublic() {
		return this.nonpublic;
	}

	public void setNonpublic(String nonpublic) {
		this.nonpublic = nonpublic;
	}

	@Column(name = "CUST_STATUS", precision = 2, scale = 0)
	public Long getCustStatus() {
		return this.custStatus;
	}

	public void setCustStatus(Long custStatus) {
		this.custStatus = custStatus;
	}

	@Column(name = "NOTE", length = 256)
	public String getNote() {
		return this.note;
	}

	public void setNote(String note) {
		this.note = note;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "MODIFY_TIME", length = 0)
	public Date getModifyTime() {
		return this.modifyTime;
	}

	public void setModifyTime(Date modifyTime) {
		this.modifyTime = modifyTime;
	}

	@Column(name = "MODIFY_EMP_ID", precision = 18, scale = 0)
	public Long getModifyEmpId() {
		return this.modifyEmpId;
	}

	public void setModifyEmpId(Long modifyEmpId) {
		this.modifyEmpId = modifyEmpId;
	}

	@Column(name = "CUST_TYPE_CODE", length = 1)
	public String getCustTypeCode() {
		return this.custTypeCode;
	}

	public void setCustTypeCode(String custTypeCode) {
		this.custTypeCode = custTypeCode;
	}

	@Column(name = "CLASS_MAIN_ID", precision = 18, scale = 0)
	public Long getClassMainId() {
		return this.classMainId;
	}

	public void setClassMainId(Long classMainId) {
		this.classMainId = classMainId;
	}

	@Column(name = "ORG_ID", length = 40)
	public String getOrgId() {
		return this.orgId;
	}

	public void setOrgId(String orgId) {
		this.orgId = orgId;
	}

	@Column(name = "URL", length = 256)
	public String getUrl() {
		return this.url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	@Column(name = "WEIBO", length = 256)
	public String getWeibo() {
		return this.weibo;
	}

	public void setWeibo(String weibo) {
		this.weibo = weibo;
	}

	@Column(name = "WEIXIN", length = 256)
	public String getWeixin() {
		return this.weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}

	@Column(name = "YIXIN", length = 256)
	public String getYixin() {
		return this.yixin;
	}

	public void setYixin(String yixin) {
		this.yixin = yixin;
	}

	@Column(name = "LOGO", length = 256)
	public String getLogo() {
		return this.logo;
	}

	public void setLogo(String logo) {
		this.logo = logo;
	}

	@Column(name = "SAFE_STATUS", length = 1)
	public String getSafeStatus() {
		return this.safeStatus;
	}

	public void setSafeStatus(String safeStatus) {
		this.safeStatus = safeStatus;
	}

	@Column(name = "BX_NAME", length = 256)
	public String getBxName() {
		return this.bxName;
	}

	public void setBxName(String bxName) {
		this.bxName = bxName;
	}

	@Column(name = "PY_NAME", length = 256)
	public String getPyName() {
		return this.pyName;
	}

	public void setPyName(String pyName) {
		this.pyName = pyName;
	}

	@Column(name = "ENG_NAME", length = 256)
	public String getEngName() {
		return this.engName;
	}

	public void setEngName(String engName) {
		this.engName = engName;
	}

}